package com.jxtpro.common.config;

import com.jfinal.config.Constants;
import com.jfinal.config.Handlers;
import com.jfinal.config.Interceptors;
import com.jfinal.config.JFinalConfig;
import com.jfinal.config.Plugins;
import com.jfinal.config.Routes;
import com.jfinal.core.JFinal;
import com.jfinal.json.MixedJsonFactory;
import com.jfinal.kit.PropKit;
import com.jfinal.render.ViewType;
import com.jfinal.template.Engine;
import com.jxtpro.api.ApiController;
import com.nmtx.doc.core.api.jfinal.JFinalApiDocConfig;

public class MainConfig extends JFinalConfig {
	@Override
	public void configConstant(Constants me) {
	}
	@Override
	public void configRoute(Routes me) {
		me.add("/api",ApiController.class);
		new JFinalApiDocConfig("jdoc.properties").setClearSuffix("Controller").start();
	}
	@Override
	public void configPlugin(Plugins me) {
	}
	@Override
	public void configInterceptor(Interceptors me) {
	}
	@Override
	public void configHandler(Handlers me) {
	}
	@Override
	public void configEngine(Engine me) {
	}
	public static void main(String[] args) {
		JFinal.start("WebRoot", 8080, "/", 5);
	}

}
